﻿using System;
using Iesi.Collections.Generic;

namespace DflyingForum.Core.Data.Domain.Entities
{
    /// <summary>
    ///  管理组
    /// </summary>
    public class Group : EntityBase
    {
        private ISet<User> _users;
        private ISet<UnitRight> _unitRights;

        public virtual string Name { get; set; }

        public virtual ISet<User> Users
        {
            get { return _users; }
            set { _users = value; }
        }

        public virtual ISet<UnitRight> UnitRights
        {
            get { return _unitRights; }
            set { _unitRights = value; }
        }

        public Group()
        {
            this._users = new HashedSet<User>();
            this._unitRights = new HashedSet<UnitRight>();
        }
    }
}
